package com.mall.cart.remote;

import com.mall.cart.common.domain.Cart;
import com.mall.common.core.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "mall-cart",contextId = "CartRemoteServer")
public interface CartRemoteServer {

    /**
     * 查询购物车列表
     */
    @GetMapping("/findCartList")
    public Result<List<Cart>> findCartList();
}
